import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  //系统初始
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  //22201408-黄嘉华
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue')
  },
  {
    path: '/NavBar',
    name: 'NavBar',
    component: () => import('../components/NavBar.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../views/register.vue')
  },
  {
    path: '/personalCenter',
    name: 'personalCenter',
    component: () => import('../views/personalCenter.vue')
  },
  {
    path: '/information',
    name: 'information',
    component: () => import('../views/information.vue')
  },
  {
    path: '/homepage',
    name: 'homepage',
    component: () => import('../views/homepage.vue')
  },
  {
    path: '/personalOrder',
    name: 'personalOrder',
    component: () => import('../views/personalOrder.vue')
  },
  {
    path: '/personalService',
    name: 'personalService',
    component: () => import('../views/personalService.vue')
  },
  //22201402-陈伊凡
  {
    path: '/Admin_BaseButton',
    name: 'Admin_BaseButton',
    component: () => import('../components/Admin_BaseButton.vue')
  },
  {
    path: '/Admin_CS_List',
    name: 'Admin_CS_List',
    component: () => import('../components/Admin_CS_List.vue')
  },
  {
    path: '/Admin_User_List',
    name: 'Admin_User_List',
    component: () => import('../components/Admin_User_List.vue')
  },
  {
    path: '/Admin_LoginView',
    name: 'Admin_LoginView',
    component: () => import('../views/Admin_LoginView.vue')
  },
  {
    path: '/Admin_Base',
    name: 'Admin_Base',
    component: () => import('../views/Admin_Base.vue')
  },
  {
    path: '/Admin_CS',
    name: 'Admin_CS',
    component: () => import('../views/Admin_CS.vue')
  },
  {
    path: '/Admin_User',
    name: 'Admin_User',
    component: () => import('../views/Admin_User.vue')
  },
  {
    path: '/Admin_UserBan',
    name: 'Admin_UserBan',
    component: () => import('../views/Admin_UserBan.vue')
  },
  {
    path: '/Admin_UserBaned_List',
    name: 'Admin_UserBaned_List',
    component: () => import('../components/Admin_UserBaned_List.vue')
  },
  {
    path: '/Admin_PackageList',
    name: 'Admin_PackageList',
    component: () => import('../components/Admin_PackageList.vue')
  },
  {
    path: '/Admin_Package',
    name: 'Admin_Package',
    component: () => import('../views/Admin_Package.vue')
  },
  //22201404-丁瑞峰
  {
    path: '/homeUserService',
    name: 'homeUserService',
    component: () => import('../views/homeUserService.vue')
  },
  {
    path: '/homeUserService',
    name: 'homeUserService',
    component: () => import('../views/homeUserService.vue'),
    meta:{
      title: '服务中心'
    }
  },
  {
    path: '/maintainService',
    name: 'maintainService',
    component: () => import('../views/maintainService.vue'),
    meta:{
      title: '服务中心-维修平台'
    }
  },
  {
    path: '/complaintService',
    name: 'complaintService',
    component: () => import('../views/complaintService.vue'),
    meta:{
      title: '服务中心-投诉平台'
    }
  },
  {
    path: '/messageService',
    name: 'messageService',
    component: () => import('../views/messageService.vue'),
    meta:{
      title: '服务中心-留言中心'
    }
  },
  {
    path: '/homeCustomerServiceStaff',
    name: 'homeCustomerServiceStaff',
    component: () => import('../views/homeCustomerServiceStaff.vue'),
    meta:{
      title: '客服人员管理平台'
    }
  },
  //22201406-龚邓坤
  {
    path: '/packageList',
    name: 'packageList',
    component: () => import('../views/packageList.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
